package com.nsoft.server.master.beans;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.nsoft.server.register.beans.BillingHeader;

@Entity
@Table(name="user_master")
public class UserMaster implements Serializable {
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="User_char_userid")
	private int userCharUserid;

	@Column(name="User_char_username")
	private String userCharUsername;

	@Column(name="User_char_password")
	private String userCharPassword;

	@Column(name="User_date_created")
	private Date userDateCreated;

	@Column(name="User_date_pwdexpiry")
	private Date userDatePwdexpiry;

	@Column(name="User_char_role")
	private String userCharRole;

	@Column(name="User_date_pwdsetdate")
	private Date userDatePwdsetdate;
	
	
	@OneToMany(mappedBy="userMaster")
	private Set<BillingHeader> billingDetailCollection;
	
	public Set<BillingHeader> getBillingDetailCollection() {
		return billingDetailCollection;
	}

	public void setBillingDetailCollection(
			Set<BillingHeader> billingDetailCollection) {
		this.billingDetailCollection = billingDetailCollection;
	}


	private static final long serialVersionUID = 1L;

	public UserMaster() {
		super();
	}

	public int getUserCharUserid() {
		return this.userCharUserid;
	}

	public void setUserCharUserid(int userCharUserid) {
		this.userCharUserid = userCharUserid;
	}

	public String getUserCharUsername() {
		return this.userCharUsername;
	}

	public void setUserCharUsername(String userCharUsername) {
		this.userCharUsername = userCharUsername;
	}

	public String getUserCharPassword() {
		return this.userCharPassword;
	}

	public void setUserCharPassword(String userCharPassword) {
		this.userCharPassword = userCharPassword;
	}

	public Date getUserDateCreated() {
		return this.userDateCreated;
	}

	public void setUserDateCreated(Date userDateCreated) {
		this.userDateCreated = userDateCreated;
	}

	public Date getUserDatePwdexpiry() {
		return this.userDatePwdexpiry;
	}

	public void setUserDatePwdexpiry(Date userDatePwdexpiry) {
		this.userDatePwdexpiry = userDatePwdexpiry;
	}

	public String getUserCharRole() {
		return this.userCharRole;
	}

	public void setUserCharRole(String userCharRole) {
		this.userCharRole = userCharRole;
	}

	public Date getUserDatePwdsetdate() {
		return this.userDatePwdsetdate;
	}

	public void setUserDatePwdsetdate(Date userDatePwdsetdate) {
		this.userDatePwdsetdate = userDatePwdsetdate;
	}

}
